package com.yunfei.springbootgoods.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class ShoppingCar {

    private Integer carId;
    private Integer goodsId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date addTime;
    private Goods goods;

    public ShoppingCar() {
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    @Override
    public String toString() {
        return "ShoppingCar{" +
                "carId=" + carId +
                ", goodsId=" + goodsId +
                ", addTime=" + addTime +
                ", goods=" + goods +
                '}';
    }
}
